import random
import string


def random_str(length: int) -> str:
    """
    随机字符串
    :param length:
    :return:
    """
    return ''.join([random.choice(string.ascii_lowercase + string.digits) for _ in range(length)])
